
public class Sentier {
	String type;
	Village villageDepart;
	Village villageArrivee;
	
	public Sentier(String type, Village villageDepart, Village villageArrivee) {
		this.type = type;
		this.villageDepart = villageDepart;
		this.villageArrivee = villageArrivee;
	}
	
	
	public Sentier() {
		type="";
		Village v = null;
		try {
			v = new Village();
		} catch (Exception e) {
			e.printStackTrace();
		}
		villageDepart=v;
		villageArrivee=v;
	}


	public Village getDepart() {
		return villageDepart;
	}

	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}

	public boolean equals(Object op2) {
		return true;
	}

	public void setDepart(Village villageDepart) {
		this.villageDepart = villageDepart;
	}

	public Village getArrivee() {
		return villageArrivee;
	}

	public void setArrivee(Village villageArrivee) {
		this.villageArrivee = villageArrivee;
	}


	public String toString() {
		return "[type=" + type + ", villageDepart=" + villageDepart.getNumero()
				+ ", villageArrivee=" + villageArrivee.getNumero() + "]";
	}



}
